﻿<!DOCTYPE html>
<html>

<head>
<meta name="Generator" content="ECSHOP v2.7.3" />

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ELT 交易平台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
     <link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/font-awesome.min.css" rel="stylesheet">

    <link href="__PUBLIC__/home/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/style.min.css" rel="stylesheet">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    
    <style type="text/css">
    .gray-bg{
    	background: #fff url(__PUBLIC__/home/images/indexbggood.png) no-repeat fixed center center / cover;
    	background-size:100% 100%;
    }
    
    </style>
    <script>if(window.top !== window.self){window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name"><img width="150px" alt="" src="__PUBLIC__/home/picture/logo00.png"></h1>
            </div>
            <h3></h3>
			<form class="m-t" role="form" name="LoginForm" action="__MODULE__/login/dologin" method="post" onSubmit="return checkSubmit(this)">

                <div class="form-group">
                    <select class="form-control" onchange="gradeChange()" id="changeLau">
                        <option value="2" selected>简体中文</option>
                        <option value="3" >繁體中文</option>
                        <option value="4" >English</option>
                    </select>
                </div>
                <div class="form-group">
                    <input type="text" id="username" name="username" class="form-control" placeholder="用户名" style="background:url(images/账户.png) no-repeat right white">                    
                </div>             
                <div class="form-group">
                    <input type="password" id="password" name="password" class="form-control" placeholder="密码" style="background: url(images/密码.png) no-repeat right white">
                </div>
                	              <div class="form-group">
             		<div class="input-group" >
                          <input id="captcha" name="code" type="text" placeholder="输入验证码" class="form-control" style="background: url(images/验证码.png) no-repeat right white;width: 130px;"> 
                          <img style='width:150px;height:34px;margin-left:20px' onclick='this.src=this.src+"?id="+Math.random();' src="__URL__/code"  alt="点击刷新">
                      </div>
	              </div>
                                
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>

                <p class="text-muted text-center"> <a href="__MODULE__/login/forgetpassword" style="color:white"><small>忘记密码了？</small></a>
                </p>

            </form>
        </div>
    </div>
    <script src="__PUBLIC__/home/js/jquery.min.js"></script>
    <script src="__PUBLIC__/home/js/bootstrap.min.js"></script>
    <script type="text/javascript">
	$(document).ready(function(){
		
	});
   var k = false;
    function checkSubmit()
    {

        if($('#username').val() == ''){
            alert('请输入您的用户名');
            return false;
        }
        
        if($('#password').val() == ''){
            alert('请输入您的密码');
            return false;
        }
        if($('#captcha').val() == ''){
            alert('请输入验证码');
            return false;
        }

                
         $.ajaxSetup({
             headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
             }
        });
                
        $.ajax({
            type : 'POST',
            url : '/home/login/chulidenglu',
            data : {username:$('#username').val(),password:$('#password').val(),code:$('#captcha').val()},
            dataType : 'html',
            async : false,
            success : function(str){
                if(str==2){
                    alert('验证码错误');
                    return false;
                }
                if(str==22){
                    alert('用户名错误');
                    return false;
                }
                if(str==222){
                    alert('密码错误');
                    return false;
                }
                if(str==1){
                    k = true;
                }

        }
        
    });

        return k;
    }
	</script>
    
</body>

<ml>
